 package com.edu.dao;

import java.util.List;

import com.edu.entity.User;
import com.edu.entity.shopDingdong;

public interface UserBackgroundDao {
	public List<User> queryUser(int currentPageNum,int pageSize);
	public int count(String tableName);
	public int addUser(User user);//添加用户
	public int addShop(shopDingdong shop);//添加商品
	public int updateUserById(User user);//用户修改
	public int updateShopById(shopDingdong shop);//商品修改
	public int deleteById(int userId,String tableId,String tableName);
	public List<shopDingdong> queryShop(int currentPageNum,int pageSize);
	public List<User> selectByUser(User u,int currentPageNum,int pageSize);//用户搜索
	public List<shopDingdong> selectByShop(shopDingdong shop,int currentPageNum,int pageSize);//商品搜索
}
